package com.neuedu.shixun.hospital2.service.Impl;

import com.neuedu.shixun.hospital2.entity.RuleForm;
import com.neuedu.shixun.hospital2.entity.RuleForm2;
import com.neuedu.shixun.hospital2.service.PublicService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
@Slf4j
@Service
public class PublicServiceImpl implements PublicService{
    @Override
    public char checkEntity(RuleForm ruleForm) {
        String idNum=ruleForm.getIdNum();
        char c=idNum.charAt(0);
        log.info("c:"+c);
        return c;
    }

    @Override
    public char checkEntity(RuleForm2 ruleForm2) {
        String idNum=ruleForm2.getIdNum();
        char c=idNum.charAt(0);
        return c;
    }
}
